import java.io.*;
import java.util.*;

public class RunList{

	public static void main(String[] args){
		try{
			String key = "2011";
			System.out.println(key);
			int count = 1;
			BufferedReader br = new BufferedReader(new FileReader("list.txt"));
			String line = br.readLine();
			while(line != null){
				if(line.contains(key)){
					int dotloc = line.indexOf(".");
					
					System.out.println(line.substring(0,dotloc+18));
				}
				line = br.readLine();
			}
		}
		catch(Exception e){
		e.printStackTrace();
		}
		try{
			String key = "2010";
			System.out.println(key);
			int count = 1;
			BufferedReader br = new BufferedReader(new FileReader("list.txt"));
			String line = br.readLine();
			while(line != null){
				if(line.contains(key)){
					int dotloc = line.indexOf(".");
					
					System.out.println(line.substring(0,dotloc+18));
				}
				line = br.readLine();
			}
		}
		catch(Exception e){
		e.printStackTrace();
		}
		try{
			String key = "2009";
			System.out.println(key);
			int count = 1;
			BufferedReader br = new BufferedReader(new FileReader("list.txt"));
			String line = br.readLine();
			while(line != null){
				if(line.contains(key)){
					int dotloc = line.indexOf(".");
					
					System.out.println(line.substring(0,dotloc+18));
				}
				line = br.readLine();
			}
		}
		catch(Exception e){
		e.printStackTrace();
		}
	}
}